<template>
  <div class="all">
    <div class="content">
      <!-- 做一个出口 -->
      <router-view></router-view>
    </div>
    <nav class="tag">
      <router-link to="/home/index">首页</router-link>
      <router-link to="/home/find">找房</router-link>
      <router-link to="/home/new">资讯</router-link>
      <router-link to="/home/my">我的</router-link>
    </nav>
  </div>
</template>

<script>
export default {
  name: 'DemoLayout',

  data() {
    return {
      
    };
  },

  mounted() {
    
  },

  methods: {
    
  },
};
</script>

<style lang="less" scoped>
.all {
  height: 812px;
  width: 375px;
  .top {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 212px;
    background-color: skyblue;
    padding-top: 30px;
    .search {
      height: 35px;
      width: 90%;
    }
  }
  .content {
    margin-bottom: 51px;
  }
  .tag {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    display: flex;
    background: #fff;
    border-top: 1px solid #e4e4e4;
    a {
      flex: 1;
      text-decoration: none;
      font-size: 14px;
      color: #333;
      -webkit-tap-highlight-color: transparent;
      &.router-link-active {
        color: #fa0;
      }
    }
  }
}
</style>